package com.share.example.selenium.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.common.common.Page;
import com.share.example.selenium.model.amazon.seller.Goods;
import com.share.example.selenium.model.db.BaseConf;
import com.share.example.selenium.model.vo.BaseConfPageReq;
import org.openqa.selenium.WebDriver;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author author
 * @since 2023-10-15
 */
public interface IBaseConfService extends IService<BaseConf> {
    Object init();

    BaseConf getByCode(String code);

    List<BaseConf> listByGCode(String gCode);

    String getGroovyByCodeOrId(String code, String id);

    Object exeGroovy(String groovy, WebDriver driver);

    Object cleanAllGroovy();

    Goods getGoodsByXpathId(String goodsXpathId);

    String getUserCode();

    String[] getDingDingTokenAndSecret();

    String getAsin();

    String getPromoteNameByAsins(String asin);

    Page pageList(BaseConfPageReq req);
}
